package com.java.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 系统编码表
 * @author Administrator
 *
 */
@Entity
@org.hibernate.annotations.Entity(
		selectBeforeUpdate = true, 
		dynamicInsert = true, 
		dynamicUpdate = true
)
@Table(name="code")
public class Code implements Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8494899256531733471L;

	@Id
	@GeneratedValue
	private Long id;
	
	/**
	 * 编码类型
	 */
	@Column(length=100)
	private String codeType;
	
	/**
	 * 编码名称
	 */
	@Column(length=100)
	private String codeName;
	
	/**
	 * 排序
	 */
	@Column(columnDefinition="default 0")
	private Integer codeSort;
	
	public Integer getCodeSort() {
		return codeSort;
	}

	public void setCodeSort(Integer codeSort) {
		this.codeSort = codeSort;
	}

	public String getCodeType() {
		return codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	public String getCodeName() {
		return codeName;
	}

	public void setCodeName(String codeName) {
		this.codeName = codeName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
